jsx3.Class.defineClass(
        "tibco.admin.monitormanage.uicomponents.page.gridInfrastructure.tabContent.machineOverview.MachineOverview", //the full name of the class to create
        jsx3.lang.Object, //  extends
        [tibco.admin.monitormanage.uicomponents.page.gridInfrastructure.MachineTabInterface], // implements
        function (plugin) {
        
            plugin.instance = null

            plugin.getInstance = function(args) {
                if(!this.instance) {
                    this.instance = new tibco.admin.monitormanage.uicomponents.page.gridInfrastructure.tabContent.machineOverview.MachineOverview();
                }
                return this.instance;
            }

            plugin.prototype.getNamespace = function() {
               return "tibco.admin";
            }
            
            plugin.prototype.getTabText = function() {
				return tibco.admin.Main.getServer().getDynamicProperty("@MM@general@OverviewTitle");
            	//return "Overview";
            }

            plugin.prototype.loadComponent = function(parent, machineId) {
                var overviewBlock = tibco.admin.Main.loadUIResource(parent, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/page/gridInfrastructure/tabContent/machineOverview/components/machineOverview.xml", true);
                
				var machineContentPane = overviewBlock.getDescendantOfName("machineMainContentPane");
       			if(!tibco.admin.monitormanage || !tibco.admin.monitormanage.uicomponents || !tibco.admin.monitormanage.uicomponents.table || !tibco.admin.monitormanage.uicomponents.table.nodes || !tibco.admin.monitormanage.uicomponents.table.nodes.Nodes)
               	{ tibco.admin.Main.loadClass("tibco/admin/monitormanage/uicomponents/table/nodes/Nodes.js", this.getNamespace()); }
               	var nodesTable = tibco.admin.Main.loadUIResource(machineContentPane, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/table/nodes/components/nodes.xml", true);
               	nodesTable.setUpComponent("_MM_infra", true, true, null, null, false, false, tibco.admin.monitormanage.uicomponents.page.gridInfrastructure.GridInfrastructure.machineScreenId, true, true);
               	tibco.admin.monitormanage.general.PollingHandler.register(tibco.admin.monitormanage.general.PollingHandler.GENERAL_POLLING_HANDLER_ID, nodesTable, nodesTable.updateComponent, tibco.admin.monitormanage.uicomponents.page.gridInfrastructure.GridInfrastructure.machineScreenId);
               	tibco.admin.monitormanage.general.RefreshHandler.register(nodesTable, nodesTable.updateComponent, tibco.admin.monitormanage.uicomponents.page.gridInfrastructure.GridInfrastructure.machineScreenId);
               	
               	var machineInfoPane = overviewBlock.getDescendantOfName("machineInfoPane");
       			if(!tibco.admin.monitormanage || !tibco.admin.monitormanage.uicomponents || !tibco.admin.monitormanage.uicomponents.text || !tibco.admin.monitormanage.uicomponents.text.machineInfo || !tibco.admin.monitormanage.uicomponents.text.machineInfo.MachineInfo)
               	{ tibco.admin.Main.loadClass("tibco/admin/monitormanage/uicomponents/text/machineInfo/MachineInfo.js", this.getNamespace()); }
               	var machineInfoObj = tibco.admin.Main.loadUIResource(machineInfoPane, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/text/machineInfo/components/machineInfo.xml", true);
               	machineInfoObj.setUpComponent();
            }
            
            plugin.prototype.updateComponent = function(machineId) {
            	// this method does not have to do anything considering the component update is
            	// handled by the components within this component
            	jsx3.log("Machine overview tab with machineId = " + machineId); 
            }
            
            plugin.prototype.tabClicked = function(objEvent) {
            	tibco.admin.monitormanage.uicomponents.dropdown.timeframe.Timeframe.showTimeframe(tibco.admin.monitormanage.uicomponents.page.gridInfrastructure.GridInfrastructure.machineScreenId);
        	}

        });